<template>
  <img class="avatar-container" :src="url" :style="{ width: size + 'px', height: size + 'px' }"  :alt="url" />
</template>

<script lang="ts">
import {defineComponent} from 'vue'
export default defineComponent({
  props: {
    url: {
      type: String,
      required: true
    },
    size: {
      type: Number,
      default: 150
    }
  },
})
</script>

<style lang="less" scoped>
.avatar-container {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
</style>